package cn.silver.module.authority.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.authority.bean.ClientBean;
import cn.silver.module.authority.domain.SysClient;
import cn.silver.module.authority.param.ClientParam;
import cn.silver.module.authority.service.ISysClientService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 客户端管理
 *
 * @author Silver Zhou
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "权限管理-客户端授权管理")
@RequestMapping("/system/client")
public class SysClientController extends BusController<ISysClientService, SysClient, ClientParam, ClientBean> {

    @Override
    @Resource
    public void setBaseService(ISysClientService baseService) {
        this.baseService = baseService;
        this.setCode("authority:client");
        this.setTitle("权限管理-客户端授权管理");
        this.setPermission("authority:client");
    }
}
